<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>后台管理工作平台</title>
<link rel="stylesheet" type="text/css" href="../css/style.css"/>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
<script type="text/javascript" src="<%=request.getContextPath() %>/js/js.js"></script>
</head>
<body>
<div id="top"> </div>
<form id="login" name="login" action="login.do" method="post">
  <div id="center">
    <div id="center_left"></div>
    <div id="center_middle">
      <div class="user">
        <label>用户名：
        <input type="text" name="username" id="username" />
        </label>
      </div>
      <div class="user">
        <label>密　码：
        <input type="password" name="password" id="password" />
        </label>
      </div>
      <div class="chknumber">
        <label>验证码：
        <input name="rand" type="text" id="chknumber" maxlength="6" class="chknumber_input" />
        </label>
        <img src="<%=request.getContextPath() %>/action/rand.do"  id="safecode" title="点击图片刷新验证码"/>
      </div>
    </div>
    <div id="center_middle_right"></div>
    <div id="center_submit">
      <div class="button"> <img src="<%=request.getContextPath() %>/images/dl.gif" width="57" height="20" onclick="form_submit()" > </div>
      <div class="button"> <img src="<%=request.getContextPath() %>/images/cz.gif" width="57" height="20" onclick="form_reset()"> </div>
    </div>
    <div id="center_right"></div>
  </div>
</form>
<div id="footer"></div>
</body>
</html>
<script type="text/javascript">
<!--
var context = "<%=request.getContextPath() %>";
$(function(){
	var message = "<s:property value="status"/>";
	if(message == 0){
		alert("用户名或密码为空");
		return false;
	}else if(message == 1){
		alert("验证码不正确");
		return false;
	}else if(message == 2){
		alert("用户不存在或用户名密码不正确");
		return false;
	}else if(message == 3){
		alert("系统超时，请重新登录");
		return false;
	}else if(message == 4){
		alert("恭喜您已经成功登出！");
		return false;
	}else if(message == 9){
		alert("系统异常");
		return false;
	}
});
//-->
</script>
